package cn.gcjxsc.consts;

/**
 * 业务员收益类型
 * @author pumbaa
 * @since 1.0
 */
public enum IntegralRecordType {
    /**
     * 购物收益
     */
    SHOPPING(100),
    /**
     * 提现
     */
    WITHDRAW(200),
    /**
     * 其他
     */
    OTHER(0);
    private  int type;

    IntegralRecordType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }
    public static IntegralRecordType fromCode(int type) {
        if (type == 100) {
            return SHOPPING;
        }
        else {
            return OTHER;
        }
    }
}
